Change in openvpn[master]: Use USER_PASS_LEN for private key password buffer size
A message that is not in the archive (sent off-list or not yet received): gerrit.1772309250000.I5e17e184f666317df21460108da4f70670358ece@...2715...
Attention is currently required from: plaisthos.
Hello plaisthos,
I'd like you to do a code review.
Please visit
http://gerrit.openvpn.net/c/openvpn/+/1553?usp=email
to review the following change.
Change subject: Use USER_PASS_LEN for private key password buffer size
......................................................................
Use USER_PASS_LEN for private key password buffer size
GitHub: fixes OpenVPN/openvpn#993
Change-Id: I5e17e184f666317df21460108da4f70670358ece
---
M src/openvpn/ssl_openssl.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/53/1553/1
src/openvpn/ssl_openssl.c +1 -1
@@ -796,7 +796,7 @@ }else /* use our generic 'Private Key' passphrase callback */ { -char password[64 ]; +char password[USER_PASS_LEN ];pem_password_cb *cb =SSL_CTX_get_default_passwd_cb (ctx);void *d =SSL_CTX_get_default_passwd_cb_userdata (ctx);
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1553?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I5e17e184f666317df21460108da4f70670358ece
Gerrit-Change-Number: 1553
Gerrit-PatchSet: 1
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Attention is currently required from: selvanair.
plaisthos has posted comments on this change by selvanair. ( http://gerrit.openvpn.net/c/openvpn/+/1553?usp=email )
Change subject: Use USER_PASS_LEN for private key password buffer size
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1553?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I5e17e184f666317df21460108da4f70670358ece
Gerrit-Change-Number: 1553
Gerrit-PatchSet: 1
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: selvanair <[email protected]...>
Gerrit-Comment-Date: Mon, 02 Mar 2026 13:31:12 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
selvanair has posted comments on this change by selvanair. ( http://gerrit.openvpn.net/c/openvpn/+/1553?usp=email )
Change subject: Use USER_PASS_LEN for private key password buffer size
......................................................................
Patch Set 1:
(1 comment)
Patchset:
PS1:
Would be good to have this in 2.7.1..
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1553?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I5e17e184f666317df21460108da4f70670358ece
Gerrit-Change-Number: 1553
Gerrit-PatchSet: 1
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Comment-Date: Wed, 04 Mar 2026 22:31:40 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
PATCH 1/1 Use USER_PASS_LEN for private key password buffer size
In reply to a message not in the archiveFrom: Selva Nair <[email protected]...>
GitHub: fixes OpenVPN/openvpn#993
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1553
---
This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1553
This mail reflects revision 1 of this Change.
Signed-off-by line for the author was added as per our policy.
Acked-by according to Gerrit (reflected above):
Arne Schwabe <[email protected]...>
src/openvpn/ssl_openssl.c +1 -1
@@ -796,7 +796,7 @@ }else /* use our generic 'Private Key' passphrase callback */ { -char password[64 ]; +char password[USER_PASS_LEN ];pem_password_cb *cb =SSL_CTX_get_default_passwd_cb (ctx);void *d =SSL_CTX_get_default_passwd_cb_userdata (ctx);
[Openvpn-devel] [PATCH applied] Re: Use USER_PASS_LEN for private key password buffer size
Well spotted... change makes sense, getting rid of magic numbers is good, ensuring all "use this for a password" arrays have the same size is even better ;-)
Your patch has been applied to the master and release/2.7 branch (bugfix).
commit 5f7b1c548b69e0ba0c54bfb63c94243c4ffaea97 (master) commit 6a1ae7f24d3179146bb7464bd8dc8a36f18353fb (release/2.7)
Author: Selva Nair Date: Thu Mar 5 07:59:45 2026 +0100
Use USER_PASS_LEN for private key password buffer size
Signed-off-by: Selva Nair <[email protected]...>
Acked-by: Arne Schwabe <[email protected]...>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1553
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg35914.html
Signed-off-by: Gert Doering <[email protected]...>--
kind regards,
Gert Doering
cron2 has uploaded a new patch set (#2) to the change originally created by selvanair. ( http://gerrit.openvpn.net/c/openvpn/+/1553?usp=email )
The following approvals got outdated and were removed:
Code-Review+2 by plaisthos
Change subject: Use USER_PASS_LEN for private key password buffer size
......................................................................
Use USER_PASS_LEN for private key password buffer size
GitHub: fixes OpenVPN/openvpn#993
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1553
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg35914.html
---
M src/openvpn/ssl_openssl.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/53/1553/2
src/openvpn/ssl_openssl.c +1 -1
@@ -796,7 +796,7 @@ }else /* use our generic 'Private Key' passphrase callback */ { -char password[64 ]; +char password[USER_PASS_LEN ];pem_password_cb *cb =SSL_CTX_get_default_passwd_cb (ctx);void *d =SSL_CTX_get_default_passwd_cb_userdata (ctx);
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1553?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I5e17e184f666317df21460108da4f70670358ece
Gerrit-Change-Number: 1553
Gerrit-PatchSet: 2
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/1553?usp=email )
Change subject: Use USER_PASS_LEN for private key password buffer size
......................................................................
Use USER_PASS_LEN for private key password buffer size
GitHub: fixes OpenVPN/openvpn#993
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1553
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg35914.html
---
M src/openvpn/ssl_openssl.c
1 file changed, 1 insertion(+), 1 deletion(-)
src/openvpn/ssl_openssl.c +1 -1
@@ -796,7 +796,7 @@ }else /* use our generic 'Private Key' passphrase callback */ { -char password[64 ]; +char password[USER_PASS_LEN ];pem_password_cb *cb =SSL_CTX_get_default_passwd_cb (ctx);void *d =SSL_CTX_get_default_passwd_cb_userdata (ctx);
Signature · 12 lines
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1553?usp=email To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I5e17e184f666317df21460108da4f70670358ece Gerrit-Change-Number: 1553 Gerrit-PatchSet: 2 Gerrit-Owner: selvanair <[email protected]...> Gerrit-Reviewer: plaisthos <[email protected]...> Gerrit-CC: openvpn-devel <[email protected]>